STEP 11: Now let's build the function that will tell us our characters' weights on Jupiter!

  • Go to . Drag Define Function with Parameter to the bottom of your program.
  • Change the function name to get_jupiter_weight.
  • Change the parameter variable in the function definition from my_var to earth_weight.
  • Go to and drop Float Variable inside the function. It should have a ···· in front of it.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)